home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000043_icon-group-sender _Wed May 27 08:21:22 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id IAA03054
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Wed, 27 May 1998 08:21:21 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA29918; Wed, 27 May 1998 08:21:15 -0700
From: Otfried Geffert <og@stardivision.de>
Date: Wed, 27 May 1998 11:37:39 GMT
Message-Id: <19980527.11373903@og-1042.stardiv.de>
Subject: Re: Writing compilers in Icon
To: Guy Laden <guy@math.tau.ac.il>
Cc: icon-group@baskerville.CS.Arizona.EDU
In-Reply-To: <199805222014.XAA02171@orion.math.tau.ac.il>
References: <199805222014.XAA02171@orion.math.tau.ac.il>
X-Mailer: Mozilla/3.0 (compatible; StarOffice/4.0; WinNT/Win95)
X-Priority: 3 (Normal)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1125
Hi Guy,
in 'The Icon programming language' 3rd edition from Griswold &=20
Griswold
they describe how to use Icon for syntax analysis using
- alternation
- recursive lists=20
- generators to represent syntactical constructs
on page 220-226.
It's really worth reading.=20
I myself wrote a compiler/linker, but I used lex/yacc and C, because
I did'nt know Icon in those days. With Icon I would have implemented=20=
it much faster, especially because of the builtin data
structures.
Regards, Otfried
>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<
Guy Laden <guy@math.tau.ac.il> wrote:
> I noticed the newly announced implementation of Jcon is written in=20=
Icon.=20
> I was wondering whether anybody can comment on how suitable they=20
> find Icon for writing compilers? Do any of Icon's unique features
> prove especially useful for this task? I'm wondering more about
> generators and goal-directed evaluation; the built-in data-structures =
> are obviously useful.
>=20
> btw, does anybody have an Icon grammar they are willing to share
> that is suitable for recursive descent parsing?
>=20
> Regards,
> Guy.
>=20